<!--  -->
<template>
    <div class="page page-initiate page_hasHeader">
        <o-header :title="pageTitle"
                  show-return>
            <span  slot="right" @click="comment()">发送</span>
        </o-header>
        <group class="clear-bottomLine"
               :gutter="10">
            <x-textarea placeholder="开展你的脑洞吧"
                        autosize
                        :height="500"
                        :max="200"
                        v-model="desc"></x-textarea>
        </group>
    </div>
</template>

<script>
export default {
    data () {
        return {
            desc:'',
            pageTitle: '由各种物质组成的巨型球状天体，叫做星球。'
        };
    },


    computed: {},

    methods: {
        comment(){
            var setvalue = this.desc;
            this.$store.commit('set',({'desc': setvalue}));
            this.$store.commit('push');
            console.log(this.$store.state.data2.length);
        }
    }
}

</script>

<style lang='less'>
    .page-initiate{
        & .vux-no-group-title{
            &::after{
                display: none;
            }
        }
    }
</style>